package cn.ven.service;

import cn.ven.entity.Largefile;
import cn.ven.mapper.LargefileMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LargeFileServiceImpl  implements LargeFileService {

    @Autowired(required = false)
    LargefileMapper largefileMapper;

    //添加图片信息
    public void addLargefile(Largefile largefile){
        largefileMapper.addLargefile(largefile);
    }

    //删除热图信息
    public void delLarge(String id){
        largefileMapper.delLarge(id);
    }

    //根据id查找热图信息
    public Largefile findById(String id){
        Largefile largefile = largefileMapper.findById(id);
        return largefile;
    }

}
